<?php

namespace Database\Factories;

use App\Models\MemberShip;
use Illuminate\Database\Eloquent\Factories\Factory;

class MemberShipFactory extends Factory
{
    /**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    protected $model = MemberShip::class;

    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            'type' => $this->faker->randomElement([
                'month',
                'quarter',
                'year',
                'ever',
                'free',
            ]),
            'title' => $this->faker->text(15),
            'vip_day' => $this->faker->numberBetween(1, 30),
            'price' => $this->faker->numberBetween(1000, 9999),
            'new_price' => $this->faker->numberBetween(888, 88887),
            'sort' => $this->faker->numberBetween(1, 1000),
        ];
    }
}
